package com.xiangxiao.rpan.authority.constant;

/**
 * @Projectname: ResponseCode
 * @Author: xiangxiao
 * @Email: 573768011@qq.com
 * @Data:2023/3/16 23:50
 */
public class ResponseCode {
  /**
   * 通用操作成功
   */
  public static final int RESULT_SUCCESS = 10000000;

  /**
   * 通用错误
   */
  public static final int RESULT_FAIL = 14000001;

  /**
   * 用户档案人脸封面已被使用
   */
  public static final int RESULT_USER_ARCHIVES_COVER_FAIL = 14010001;

  /**
   * 用户操作权限不足
   */
  public static final int NO_ACCESS = 14000002;

  /**
   * 没有登录或登录超时
   */
  public static final int NO_LOGIN = 14000003;

  /**
   * 登录用户名或者密码错误
   */
  public static final int LOGIN_ERROR = 14000004;

  /**
   * 无效或者不支持的请求
   */
  public static final int INVALID_REQUEST_ERROR = 14000005;

  /**
   * token校验失败
   */
  public static final int TOKEN_ERROR = 14000006;

  /**
   * 账号已存在
   */
  public static final int ACCOUNT_DUPLICATE = 14000007;

  /**
   * 数据权限校验异常
   */
  public static final int DATA_ACCESS_ERROR = 14000008;

  /**
   * 账号不存在
   */
  public static final int ACCOUNT_NOT_EXIST = 14000009;

  /**
   * 账号已失效
   */
  public static final int ACCOUNT_DISABLED = 14000010;

  /**
   * 账号已登录
   */
  public static final int ACCOUNT_ALREADY_LOGIN = 14000011;

  /**
   * 账号已在其它地方登录
   */
  public static final int ACCOUNT_ALREADY_LOGIN_ON_OTHER_STATION = 14000012;

  /**
   * 请输入正确的参数
   */
  public static final int PLEASE_INPUT_CORRECT_PARAMETERS = 14000013;

  /**
   * 部门下无该角色
   */
  public static final int THE_DEPARTMENT_HAS_NO_ROLE = 14000014;

  /**
   * 用户不存在
   */
  public static final int USER_NOT_FOUND = 14000015;

  /**
   * 角色不存在
   */
  public static final int ROLE_NOT_FOUND = 14000016;

  /**
   * 原密码错误
   */
  public static final int ORIGINAL_PASSWORD_WRONG = 14000023;


  /**
   * 角色已绑定用户，不能删除
   */
  public static final int ROLE_BIND_USER_NOT_DELETE = 14000029;

  /**
   * 超级管理员不进行数据权限检验
   */
  public static final int SUPERUSER_NOT_DATAFILTER = 14000032;

  /**
   * 账号已锁定
   */
  public static final int ACCOUNT_LOCKED = 14000034;

  /**
   * 熔断
   */
  public static final int HYSTRIX_EXCEPTION_CODE = 43000005;

  public static final int QUERY_USERIDS_BY_TOPIC_FAILED = 14000036;

  public static final int QUERY_ALL_TOPIC_FAILED = 14000037;

  public static final int QUERY_ALL_USERS_FAILED = 14000038;

  public static final int UPDATE_RECIVED_USERS_BY_TOPICS_FAILED = 14000039;

  public static final int LOGOUT_FAILED = 14000040;


  private ResponseCode() {
  }
}
